﻿@{
    ViewBag.Title = "Form";
    Layout = "~/Views/Shared/_Form.cshtml";
}
<script>
    var keyValue = $.request("keyValue");
    $(function () {
        $.ajax({
            url: "/BusinessManage/D_AmountChange/GetForm",
            data: { keyValue: keyValue },
            dataType: "json",
            async: false,
            success: function (data) {
                $("#form1").formSerialize(data);
            }
        });
    });
    function submitForm() {
        if (!$('#form1').formValid()) {
            return false;
        }
        var money=$("#F_Money").val();
        if(money%100!=0)
        {
            $.modalAlert("输入金额必须为100的整数倍", "warning");
            return false;
        }
        if(money>100000)
        {
            $.modalAlert("输入金额必须大于等于100,小于等于100000", "warning");
            return false;
        }
        $.submitForm({
            url: "/BusinessManage/D_AmountChange/SubmitForm?keyValue=" + keyValue,
            param: $("#form1").formSerialize(),
            success: function () {
                $.currentWindow().$("#gridList").trigger("reloadGrid");
            }
        })
    }
</script>
<form id="form1">
    <div style="margin-top: 10px; margin-left: 10px; margin-right: 10px;">
        <ul class="nav nav-tabs">
            <li class="active"><a href="#">提现信息</a></li>
        </ul>
        <div style="padding-top: 20px; margin-right: 30px;">
            <table class="form">
                <tr>
                    <td>
                        <span style="font-size:16px">
                            尊敬的会员：@NFine.Code.OperatorProvider.Provider.GetCurrent().UserName,您目前账户共拥有电子货币余额￥
                            <input id="F_Amount" name="F_Amount" type="text" readonly style="width:60px;border-left:0px;border-top:0px;border-right:0px;border-bottom:5px;border-color: #080808;" />,要转￥
                            <input id="F_Money" name="F_Money" type="text" required style="width:100px;border-left:0px;border-top:0px;border-right:0px;border-bottom:100px;border-color: #080808;" />为现金。
                        </span>
                    </td>                    
                </tr>                
                <tr>
                    <td>
                        <br /><br /><br /><br /><br /><br />
                        <span style="font-size:16px;color:red;">
                            温馨提示：提现金额最低为100元，最高不能超过10万元，且金额必须为100的整数倍。银行汇款手续费由提现申请人支付。
                        </span>
                    </td>
                </tr>
            </table>                
        </div>
    </div>
</form>